<!DOCTYPE html>
<html>
<head>
    <title>交车</title>
    <meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






    <style>
        .multiple-cell {
            display: table-cell;
            padding-right: 8px;
        }

        .multiple-table {
            margin-bottom: 9px;
            display: table;
            margin-left: 78px;
        }

        .layui-form-radio {
            line-height: 28px;
            margin: 0;
            padding-right: 10px;
            cursor: pointer;
            font-size: 0;
        }

        td[data-field="paymentMethod"] div.layui-table-cell {
            overflow: visible !important;
        }

        td[data-field="paymentMethod"] .layui-form-select {
            margin-left: -15px;
            margin-right: -15px;
        }

        td[data-field="paymentMethod"] div.layui-form-select dl {
            z-index: 9999;
        }

        div[lay-id="feeLstid"] div.layui-table-box {
            overflow: visible;
        }

        div[lay-id="feeLstid"] div.layui-table-body {
            overflow: visible;
        }
    </style>
</head>
<body class="ren-body">
<div id="rrapp" v-cloak>

    <!-- 新增表单 -->
    <form class="layui-form ren-form" style="margin-bottom: 60px;">

        <!-- 车辆信息 -->
        <div class="form-content-box">
            <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                车辆信息
            </div>
            <div class="form-content-session-box">
                <div class="card">
                    <div class="layui-row layui-form-row-content" :id="carUpdateId">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label"><span style="color:red">*</span>选择车架号</label>
                            <div class="layui-input-inline">
                                <input type="text" lay-verify="validate_carId" v-model="order.orderCar.vinNo"
                                       @click="selectCar" readonly
                                       autocomplete="off" placeholder="选择车架号" class="layui-input searchVal">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label"><span style="color:red">*</span>选择车牌号</label>
                            <div class="layui-input-inline">
                                <input type="text" lay-verify="validate_carId" v-model="order.orderCar.carNo"
                                       @click="selectCar" readonly
                                       autocomplete="off" placeholder="选择车牌号" class="layui-input searchVal">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">车辆品牌/车系</label>
                            <div class="layui-input-inline">
                                <input type="text" v-model="order.orderCar.brandSeriesName" readonly
                                       autocomplete="off" placeholder="选择车牌号/车架号自动获取" class="layui-input searchVal">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">车型</label>
                            <div class="layui-input-inline">
                                <input type="text" :value="order.orderCar.modelName" readonly
                                       autocomplete="off" placeholder="选择车牌号/车架号自动获取" class="layui-input searchVal">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">车辆所属部门</label>
                            <div class="layui-input-inline">
                                <input type="text" v-model="order.orderCar.deptName" readonly
                                       autocomplete="off" placeholder="选择车牌号/车架号自动获取" class="layui-input searchVal">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">车辆所在仓库/城市</label>
                            <div class="layui-input-inline">
                                <input type="text" v-model="order.orderCar.depotCityName" readonly
                                       autocomplete="off" placeholder="选择车牌号/车架号自动获取" class="layui-input searchVal">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">车辆实时里程数</label>
                            <div class="layui-input-inline">
                                <input type="text" v-model="order.orderCar.mileage" readonly
                                       autocomplete="off" placeholder="选择车牌号/车架号自动获取" class="layui-input searchVal">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md8 layui-col-sm8 layui-col-xs8">
                            <label class="layui-form-label">随车物品</label>
                            <div class="layui-input-inline">
                                <div class="layui-input-inline-checkbox" id="accessoryGroup"></div>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                            <label class="layui-form-label">备注</label>
                            <div class="layui-input-inline">
                                <input type="text" v-model="order.orderCar.carDesc"
                                       autocomplete="off" placeholder="如果需要备注，请记录备注信息" class="layui-input searchVal">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 费用信息 -->
        <div class="form-content-box">
            <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                换车费用项
            </div>
            <div class="form-content-session-box">
                <div class="card">
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                            <label class="layui-form-label"><span style="color:red">*</span>月租金是否调整</label>
                            <div class="layui-input-block">
                                <div class="multiple-table">
                                    <div class="multiple-cell">
                                        <input type="radio" lay-filter="monthlyRentAdjust"
                                               v-model="monthlyRentAdjust" name="monthlyRentAdjust" value="0"
                                               lay-skin="primary" title="否">
                                    </div>
                                </div>
                                <div class="multiple-table">
                                    <div class="multiple-cell">
                                        <input type="radio" lay-filter="monthlyRentAdjust"
                                               v-model="monthlyRentAdjust" name="monthlyRentAdjust" value="1"
                                               lay-skin="primary" title="是">
                                    </div>
                                    <div class="multiple-cell" v-show="monthlyRentAdjust == 1">
                                        <span>原有月租金：¥{{order.plan.monthlyRent}}&emsp;&emsp;&emsp;&emsp;</span>
                                    </div>
                                    <div class="multiple-cell" v-show="monthlyRentAdjust == 1" style="padding-left: 50px">
                                        <span>调整月租金为</span>
                                    </div>
                                    <div class="multiple-cell" v-show="monthlyRentAdjust == 1">
                                        <input type="text" :lay-verify="monthlyRentAdjust == 1?'validate_monthlyRent':''"
                                               maxlength="10"
                                               v-model="monthlyRent" autocomplete="off" placeholder="请输入金额" oninput="num(this)"
                                               class="layui-input">
                                    </div>
                                </div>
                                <div class="multiple-table" v-show="order.orderCar.rentType == 1 || order.orderCar.rentType == 2">
                                    <div class="multiple-cell" style="visibility: hidden;">
                                        <input type="radio" lay-skin="primary" title="是">
                                    </div>
                                    <div class="multiple-cell" v-show="monthlyRentAdjust == 1">
                                        <span>原有服务费：¥{{order.plan.coverCharge}}&emsp;&emsp;&emsp;&emsp;</span>
                                    </div>
                                    <div class="multiple-cell" v-show="monthlyRentAdjust == 1" style="padding-left: 50px">
                                        <span>调整服务费为</span>
                                    </div>
                                    <div class="multiple-cell" v-show="monthlyRentAdjust == 1">
                                        <input type="text"
                                               maxlength="10"
                                               v-model="coverCharge" autocomplete="off" placeholder="请输入金额" oninput="num(this)"
                                               class="layui-input">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="card">
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                            <label class="layui-form-label">费用项</label>
                            <div class="layui-input-block">
                                <div class="multiple-table">
                                    <div class="multiple-cell">
                                        <select name="feeItem" lay-filter="feeItem" lay-search="">
                                            <option value="">请选择费用项</option>
                                            <option v-for="(item,index) in feeItemLst" :value="item.id">{{item.name}}</option>
                                        </select>
                                    </div>
                                    <div class="multiple-cell"style="padding-left: 50px">
                                        <a class="layui-btn layui-btn-normal" @click="addFeeItem">添加</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-row form-group">
                            <div class="table">
                                <table class="layui-hide" id="feeLst" lay-filter="feeLst"></table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 交车信息 -->
        <div class="form-content-box">
            <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                交车信息
            </div>
            <div class="form-content-session-box">
                <div class="card">
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label"><span style="color:red">*</span>交车时间</label>
                            <div class="layui-input-inline">
                                <input type="text" v-model="order.orderCar.timeDelivery"
                                       id="timeDelivery"
                                       readonly autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label"><span style="color:red">*</span>交车工作人员</label>
                            <div class="layui-input-inline">
                                <select lay-search="" lay-verify="validate_deliveryOperationId" name="deliveryOperation"
                                        lay-filter="deliveryOperation" v-model="order.orderCar.deliveryOperationId">
                                    <option value="">请选择交车工作人员</option>
                                    <option v-for="(item,index) in usrLst" :value="item.userId">{{item.username}}</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                            <label class="layui-form-label">备注</label>
                            <div class="layui-input-inline">
                                <input type="text" v-model="order.orderCar.deliveryDesc"
                                       autocomplete="off" placeholder="如果需要备注，请记录备注信息" class="layui-input searchVal">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                            <label class="layui-form-label">交车附件:</label>
                            <div class="layui-input-inline" id="addDeliveryFile"></div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">交车当前里程数</label>
                            <div class="layui-input-inline">
                                <input type="text" oninput="num(this)" maxlength="10"
                                       v-model="order.orderCar.deliveryMileage" autocomplete="off"
                                       placeholder="请确认当前里程数"
                                       class="layui-input searchVal">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">下次保养公里数</label>
                            <div class="layui-input-inline">
                                <input type="text" oninput="num(this)" maxlength="10"
                                       v-model="order.orderCar.mileageNextMaintenance" autocomplete="off"
                                       placeholder="请输入下次保养公里数" class="layui-input searchVal">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">下次保养时间</label>
                            <div class="layui-input-inline">
                                <input type="text" readonly id="mileageNextDate"
                                       v-model="order.orderCar.mileageNextDate" autocomplete="off"
                                       placeholder="请选择下次保养时间"
                                       class="layui-input searchVal">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="float-btn-group">
            <a class="layui-btn reset-btn" id="closePage">返回</a>
            <a class="layui-btn search-btn" lay-submit lay-filter="save" id="save">确定</a>
        </div>
    </form>


</div>

<script type="text/html" id="feeItemBarTpl">
    <a class="layui-grid-btn-xs" lay-event="delect">删除</a>
</script>
<script type="text/html" id="selectPaymentMethod">
    <select name="feeItemPaymentMethod" sid="{{d.serializeId}}" lay-filter="feeItemPaymentMethod">
        <option value="">请选择尾款付款方式</option>
        <option {{ d.multiple == 1 ? 'disabled' : '' }} value="7">日付</option>
        <option {{ d.multiple == 1 ? 'disabled' : '' }} value="8">周付</option>
        <option {{ d.multiple == 1 ? 'disabled' : '' }} value="1">月付</option>
        <option disabled value="2">两月付</option>
        <option disabled value="3">季付</option>
        <option disabled value="6">半年付</option>
        <option disabled value="4">年付</option>
        <option {{ d.multiple == 0 ? 'disabled' : '' }} value="5">一次性结清</option>
    </select>
</script>
<script src="../../statics/js/modules/order/delivercar.js?_${.now?long}"></script>
</body>
</html>
